const app=getApp();
Page({
  data: {
    // 可以在这里初始化用户数据
    health:[]
  },
  onAdd() {
    wx.navigateTo({
      url: '/pages/tianjiaJKDA/tianjiaJKDA'
    });
  },
  onLoad: function() {
    let url = app.globalData.URL + '/healthRecords/queryListHealths';
    let data = {
      "user_id":app.globalData.user.userId
    };
    app.wxRequest('GET', url, data, (res) => {
      console.log(res.data)
      this.setData({
        health:res.data
      })
    }, (err) => {
      console.log(err.errMsg)
    })
  },
});
